export const searchProps = [
  {
    type: 'select_input_one',
    value: 'channelId',
    name: '渠道来源',
    selectOptions: [],
    placeholder: '请选择',
    style: {
      width: '120px',
    },
  },
  {
    type: 'input',
    value: 'companyName',
    name: '公司名称',
    style: {
      width: '180px',
    },
    placeholder: '请输入',
  },
  {
    type: 'date',
    value: 'time',
    name: '日期',
    selectOptions: [],
    placeholder: '请选择',
    style: {
      width: '240px',
    },
  },
];

export const columns = [
  {
    dataIndex: 'time',
    title: '时间',
    align: 'center',
    ellipsis: true,
    isbool:true,
    width: 120,
    customRender: (text) => (text === 0 ? 0 : text || '/'),
  },

  {
    dataIndex: 'channelName',
    title: '渠道名称',
    align: 'center',
    ellipsis: true,
    isbool:true,
    width: 120,
    customRender: (text) => (text === 0 ? 0 : text || '/'),
  },
  {
    dataIndex: 'companyName',
    title: '公司名称',
    align: 'center',
    ellipsis: true,
    isbool:true,
    width: 150,
    customRender: (text) => (text === 0 ? 0 : text || '/'),
  },
  {
    dataIndex: 'channelType',
    title: '渠道类型',
    align: 'center',
    ellipsis: true,
    isbool:true,
    width: 100,
    customRender: (text) => (text === 0 ? '同业' : '信息流'),
  },
  {
    dataIndex: 'sysPrice',
    title: '单价',
    align: 'center',
    ellipsis: true,
    isbool:true,
    width: 100,
    customRender: (text) => (text === 0 ? 0 : text || '/'),
  },
  {
    dataIndex: 'sysCount',
    title: '系统数量',
    align: 'center',
    ellipsis: true,
    isbool:true,
    width: 100,
    customRender: (text) => (text === 0 ? 0 : text || '/'),
  },
  {
    dataIndex: 'clearCount',
    title: '结算数量',
    align: 'center',
    ellipsis: true,
    isbool:true,
    width: 100,
    customRender: (text) => (text === 0 ? 0 : text || '/'),
  },
  {
    dataIndex: 'dataDiff',
    title: '数据差',
    align: 'center',
    ellipsis: true,
    isbool:true,
    width: 100,
    customRender: (text) =>  text + '%',
  },
  {
    dataIndex: 'averagePrice',
    title: '成本单价',
    align: 'center',
    ellipsis: true,
    isbool:true,
    width: 100,
    customRender: (text) => (text === 0 ? 0 : text || '/'),
  },
  {
    dataIndex: 'useAmount',
    title: '消耗金额',
    align: 'center',
    ellipsis: true,
    isbool:true,
    width: 100,
    customRender: (text) => (text === 0 ? 0 : text || '/'),
  },
  {
    dataIndex: 'advancePayment',
    title: '预付',
    align: 'center',
    ellipsis: true,
    isbool:true,
    width: 100,
    customRender: (text) => (text === 0 ? 0 : text || '/'),
  },
  {
    dataIndex: 'balance',
    title: '余额',
    align: 'center',
    ellipsis: true,
    isbool:true,
    width: 100,
    customRender: (text) => (text === 0 ? 0 : text || '/'),
  },
 
  {
    dataIndex: 'billStatus',
    title: '账单状态',
    align: 'center',
    ellipsis: true,
    isbool:true,
    width: 180,
    scopedSlots: { customRender: 'billStatus' },
  },
 
  {
    dataIndex: 'remark',
    title: '备注',
    align: 'center',
    ellipsis: true,
    isbool:true,
    width: 150,
    customRender: (text) => (text === 0 ? 0 : text || '/'),
  },
  {
    title: '操作',
    width: 160,
    isbool:true,
    align: 'center',
    fixed: 'right',
    dataIndex: 'operation',
    scopedSlots: {
      customRender: 'operation',
    },
  },
];
console.log('打印的值',columns)